package ar.com.personalTravellers.beans.descriptionContainer;

import javax.persistence.Entity;
import javax.persistence.OneToOne;

import ar.com.personalTravellers.beans.Hotel;

import com.angel.resourceBundle.containers.propertyValues.impl.SimplePropertyValueContainer;

@Entity
public class HotelDescriptionContainer extends SimplePropertyValueContainer {

	private static final long serialVersionUID = -5764764752971307591L;
	@OneToOne
    private Hotel hotel;

    public HotelDescriptionContainer(){
        super();
    }

    public HotelDescriptionContainer(Hotel hotel){
        this();
        this.hotel = hotel;
    }

    public void setOwner(Object o) {
        this.setHotel((Hotel) o);
    }

    public Object getOwner() {
        return this.getHotel();
    }

    public Hotel getHotel() {
        return hotel;
    }

    public void setHotel(Hotel hotel) {
        this.hotel = hotel;
    }
}